﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection.Emit;

namespace Kokomo.PeInspector.Reflection.Disassembly
{
	class MsilSwitch : MsilTransition
	{
		public MsilBranchTarget[] TargetOffsets { get; private set; }

		public MsilSwitch(
			int sourceOffset,
			MsilBranchTarget[] targetOffsets
			)
			:
			base(sourceOffset, true)
		{
			this.TargetOffsets = targetOffsets;
			//this.TargetOffsets = targetOffset[];
		}

		//public override string ToString()
		//{
		//    return string.Format("{0:X4}: {1} => {2:X4}", this.SourceOffset, this.Type, this.TargetOffset);
		//}
	}
}
